<template>
  <div class="list">
    <ul
      class="list-group"
      v-if="todos.length > 0"
    >
      <slot></slot>
    </ul>
    <div v-else>暂无数据</div>
  </div>
</template>
<script>
export default {
  props: ['todos'],
  data() {
    return {}
  }
}
</script>
<style lang="scss" scoped>
.list {
  margin-top: 10px;
}
</style>
